package org.example.service;

import org.springframework.stereotype.Component;

@Component(value = "customerService")
public class CustomerServicelmpl implements ICustomerService{
    //保存
    public void save() {

        System.out.println("客户保存了。。。。。");
        int r = (int)(Math.random()*2);
        if(r==0) {
           int x = 10 / 0;
        }
    }
    //查询
    public int find() {
        System.out.println("客户查询数量了。。。。。");
        return 100;
    }
}
